﻿using Syspetro.Core.DbAccessor;
using Syspetro.Public.Enums;
using System;

namespace Syspetro.Public.Entity
{
    /// <summary>
    /// 算力收益设置
    /// </summary>
    public class EarningDto: IPrivateEntity
    {
        /// <summary>
        /// 币种类型
        /// </summary>
        public Coin CoinType { get; set; }
        /// <summary>
        /// 收益率（动态、分享）
        /// </summary>
        public string YieldShare { get; set; }
        /// <summary>
        /// 收益方式（动态、分享）
        /// </summary>
        public YieldType YieldShareType { get; set; }
        /// <summary>
        /// 单T算力收益
        /// </summary>
        public decimal Yield { get; set; }
        /// <summary>
        /// 收益币种类型
        /// </summary>
        public Coin CoinYieldType { get; set; }
        /// <summary>
        /// 是否启用
        /// </summary>
        public bool Enable { get; set; }
        /// <summary>
        /// 更新时间
        /// </summary>
        public DateTime? UpdateTime { get; set; }
    }
}
